<template>
  <el-timeline>
    <el-timeline-item
        v-for="(activity, index) in activities"
        :key="activity.timestamp"
        :icon="activity.icon"
        :type="activity.type"
        :color="activity.color"
        :size="activity.size"
        :timestamp="activity.timestamp"
        :hide-timestamp="hideTimestamp"
    >
      {{ activity.content }}
    </el-timeline-item>
  </el-timeline>
</template>

<script>

export default {
  name: 'TimeLine',
  components: {},
  data() {
    return {
      activities : [
        {
          content: '未开始',
          timestamp: this.pubTime,
          size: 'large',
          type: 'primary',
          color: ''
        },
        {
          content: '进行中',
          timestamp: '2018-04-03 20:46',
          color: '#0bbd87',
        },
        {
          content: '已完成',
          timestamp: '2018-04-03 20:46',
          size: 'large',
          color: ''
        },
      ],
      hideTimestamp:false
    };
  },
  created() {
  },
  props:["pubTime"],
  methods: {
    initdata(row){

    }
  },

}
</script>